package cn.com.tiza.spiro.jvm.gc.optimization;

/**
 * Created by TZ0643 on 2015-12-31.
 */
public class PutInEden {

    public static final int _1M = 1024 * 1024;

    public static void main(String[] args) {
        byte[] b1, b2, b3, b4;

        b1 = new byte[_1M];
        b2 = new byte[_1M];
        b3 = new byte[_1M];
        b4 = new byte[_1M];

        /*
        -Xmx20M -Xms20M -XX:NewRatio=6 -XX:+PrintGCDetails
Heap
 PSYoungGen      total 2560K, used 1959K [0x00000000ffd00000, 0x0000000100000000, 0x0000000100000000)
  eden space 2048K, 95% used [0x00000000ffd00000,0x00000000ffee9c18,0x00000000fff00000)
  from space 512K, 0% used [0x00000000fff80000,0x00000000fff80000,0x0000000100000000)
  to   space 512K, 0% used [0x00000000fff00000,0x00000000fff00000,0x00000000fff80000)
 ParOldGen       total 17920K, used 3072K [0x00000000feb80000, 0x00000000ffd00000, 0x00000000ffd00000)
  object space 17920K, 17% used [0x00000000feb80000,0x00000000fee80030,0x00000000ffd00000)
 PSPermGen       total 21504K, used 2823K [0x00000000f9980000, 0x00000000fae80000, 0x00000000feb80000)
  object space 21504K, 13% used [0x00000000f9980000,0x00000000f9c41de8,0x00000000fae80000)

        */
    }
}
